package com.groupbuying.admin.connector;

import com.groupbuying.admin.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;


/**
 * @anthor zmlmagic
 * @date 2019/1/10 5:45 PM
 * @company 蒙泰互联网公司
 * @des 服务商中心接口连接器
 **/

@Service
@FeignClient(name = "service-sysconfig")
public interface SysconfigFeign {
    @RequestMapping(value = "/o2okind/list", method = RequestMethod.GET)
    R getO2OKindList(@RequestParam Map<String, Object> params);

    @RequestMapping(value = "/area/list", method = RequestMethod.GET)
    R getAreaList(@RequestParam Map<String, Object> params);

    @RequestMapping(value = "/api/segment/get/leaf", method = RequestMethod.GET)
    String getUuidByLeaf();

    @RequestMapping(value = "/common/store/getAcountId", method = RequestMethod.GET)
    String getStoreAcountByLeaf();

    @RequestMapping(value = "/common/store/getProviderId", method = RequestMethod.GET)
    String getStoreProviderByLeaf();
    /*获取代理商id*/
    @RequestMapping(value = "/common/admin/getAgentId", method = RequestMethod.GET)
    String getAgentId();
}
